<?php
/**
 * @Author: Administrator
 * @Date:   2014-09-22 23:01:16
 * @Last Modified by:   Administrator
 * @Last Modified time: 2014-10-05 20:33:18
 */

class WeiuserinfoModel extends CommentModel
{
	//定义主表
	public $table = 'wei_user_info';
	
	public function add_($data)
	{
		return $this->add($data);
	}
	
	public function get_weixinifo_db()
	{
		return $this->all();
	}
	public function get_one_weixinifo($where,$field=null)
	{
		return $this->where($where)->field($field)->find();
	}
	public function del_weixinlist($id){
		return $this->where(array('id'=>$id))->delete();
	}
	public function get_info($where){
		return $this->where($where)->find();
	}
	
}